{layout name="layouts/admin" /}
<div class="panel-heading"><span style="color:blue">{$prizetitle}</span>--中奖者列表
   <a style="float:right;margin-top:-6px;margin-left:10px;"  onclick="javascript:history.back(-1);" class="btn btn-primary">返回上一页</a>
   <a style="float:right;margin-top:-6px;" href="/prize/winnerexport/{$id}" class="btn btn-primary">导出中奖者</a>
</div>

<div class="panel-body">
    <div class="box-body">
        {foreach $winners as $winner}
        <div class="form-group">
            <label>用户ID:</label>
            <span>{$winner.user_id}</span>
        </div>
        <div class="form-group">
            <label>用户昵称:</label>
            <span>{$winner.nick_name}</span>
        </div>
        {if $winner.addr}
        <div class="form-group">
            <label>收货人:</label>
            <span>{$winner.addr.consignee}</span>
        </div>
        <div class="form-group">
            <label>联系电话:</label>
            <span>{$winner.addr.link_phone}</span>
        </div>
        <div class="form-group">
            <label>所在地区:</label>
            <span>{$winner.addr.link_area}</span>
        </div>
        <div class="form-group">
            <label>详细地址:</label>
            <span>{$winner.addr.link_address}</span>
        </div>
        {else /}
        <div class="form-group">
            <label>领取状态:</label>
            <span style="color: red">{$winner.is_overdue==0?"用户待领取":"逾期未领取"}</span>
        </div>
        {/if}

        {if $prizetype==0}
        <div class="form-group">
            <label>邀请人数:</label>
            <span>{$winner.visit_count}</span>

        </div>
        {/if}

        <hr/>
        {/foreach}
    </div>

</div>